package com.eml.service.dao;

import com.eml.service.entity.*;

public interface UserDao {
    //登录
    User userLogin(String username) throws Exception;
    //注册
    void userRegister(User user) throws Exception;
    //修改密码
    int updateUserPassword(String userName,String userPassword) throws Exception;
    //查询本人信息
    User selectUserInfo(String username,String userPassword) throws Exception;
    //查看商家信息
    Merchant selectMerchantInfo(String merchantName) throws Exception;
    //查看菜单
    Menu selectMenuInfo(Integer menuId) throws Exception;
    //提交订单
    int commitOrderStatus(boolean orderDetailsStatus,Integer orderDetailsId) throws Exception;
    //查看订单状态
    Orderdetail selectOrderStatus(Integer orderDetailsId) throws Exception;
    //查看支付状态
    Payment selectPayment(Integer payId) throws Exception;
    //查看配送员状态
    DeliveryStatus selectDelivererStatus(Integer DeliveryStatusId) throws Exception;
    //更改订单状态
    int updateOrderStatus(boolean orderDetailsStatus,Integer orderDetailsId) throws Exception;
    //提交评价
    void commitReview(Review review) throws Exception;
    //提交反馈
    void commitFeedback(Feedback feedback) throws Exception;
}
